package com.gtw.modules.api.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbBargain;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface TbBargainService {


    int deleteByPrimaryKey(Integer id);

    int insert(TbBargain record);

    int insertSelective(TbBargain record);

    TbBargain selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbBargain record);

    int updateByPrimaryKey(TbBargain record);

    Page<TbBargain> queryPageList(Page<TbBargain> page, Map<String, Object> map);

    List<TbBargain> findAll();

    /**
     * 查询所有未结束发起的砍价信息
     * @return
     * @param oneDay
     */
    List<TbBargain> findNoClose(Date oneDay);
}
